/**
 * 作者: hxl
 * 日期: 2024-11-18 14:58:29
 * 备注: 秘书巡查事件表
 */
package com.motu.monstercity.server.game.commondata.patrol;

import io.vertx.core.json.JsonObject;

public class PatrolLocationModel {
    protected int id; // ID
    protected int eventId; // 事件ID
    protected String eventName; // 事件名称
    protected int eventType; // 事件类型
    protected String reward; // 事件奖励 (30;20)
    protected String secretaryReward; // 秘书碎片增加 (增加亲密值的秘书及增加的碎片的数量)

    public PatrolLocationModel() {
    }

    public PatrolLocationModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        eventId = obj.containsKey("event_id") ? obj.getInteger("event_id") : 0;
        eventName = obj.containsKey("event_name") ? obj.getString("event_name") : "";
        eventType = obj.containsKey("event_type") ? obj.getInteger("event_type") : 0;
        reward = obj.containsKey("reward") ? obj.getString("reward") : "";
        secretaryReward = obj.containsKey("secretary_reward") ? obj.getString("secretary_reward") : "";
    }

    public int getId() {
        return id;
    }

    public int getEventId() {
        return eventId;
    }

    public String getEventName() {
        return eventName;
    }

    public int getEventType() {
        return eventType;
    }

    public String getReward() {
        return reward;
    }


    public String getSecretaryReward() {
        return secretaryReward;
    }

}
